09fafa85a7c3fe27500cf04ec1e3b4a8c336e1ed,plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/controlflow/IfStatementWithIdenticalBranchesInspection.java,IfStatementWithIdenticalBranchesVisitor,visitIfStatement,#PsiIfStatement#,166

Before Change


          return;
        }
        final Match match = finder.isDuplicate(branch, true);
        if (match != null && match.getReturnValue() == null) {
          registerStatementError(ifStatement, statement);
          return;
        }

After Change


      else {
        final Match match = finder.isDuplicate(elseBranch, true);
        if (match != null) {
          final ReturnValue matchReturnValue = match.getReturnValue();
          if (matchReturnValue instanceof ConditionalReturnStatementValue &&
              !matchReturnValue.isEquivalent(buildReturnValue(thenBranch))) {
            return;
          }
          registerStatementError(ifStatement);
        }
      }